@import "header.html"

<link rel="stylesheet" href="../css/add_check_in_person.css">
<body>
<header class="fxj-header">
    <span class="back" onclick="back()">
        <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-jiantou"></use>
        </svg>
    </span>
    <h1 class="fxj-title">宾客管理</h1>
</header>
<main id="main">
    <div class="add-guy-btn" onclick="go('edit_check_in_person.html')">
        <div>
            <svg class="icon">
                <use xlink:href="#icon-jia1"></use>
            </svg>
            添加入住人
        </div>
    </div>

    <ul class="guys-list">
        <li class="guys-item line-transverse" v-for="guy of guysList" @click="modifyGuys(guy.guest_info_id,guy.gid)">
            <svg class="icon icon-checkbox" :class="{active:guy.selected}" v-if="show.add" @click.capture.stop="selectGuy(guy)">
                <use xlink:href="#icon-checkbox1" v-show="guy.selected"></use>
                <use xlink:href="#icon-checkbox" v-show="!guy.selected"></use>
            </svg>
            <div class="guys-info">
                <span>{{guy.name}}（{{guy.nation}}）</span>
                <span>{{guy.licence_number}}</span>
            </div>
            <svg class="icon">
                <use xlink:href="#icon-you"></use>
            </svg>
        </li>
    </ul>

    <div v-show="show.add" class="container-add-guy">
        <button class="btn-add-guy" @click="submit">添加</button>
    </div>
</main>
@import "js.html"
<script src="../script/add_check_in_person.js"></script>
</body>
@import "footer.html"